package com.hjs.mapper;

import com.hjs.bean.DamageCategory;
import com.hjs.bean.DamageType;
import com.hjs.bean.PavementType;

import java.util.List;

/**
 * @author violetfreesia
 * @date 2020/06/16
 */
public interface DamageTypeMapper {
    boolean addOnePavementType(PavementType obj);

    boolean addOneDamageCategory(DamageCategory obj);

    boolean addOneDamageType(DamageType obj);

    boolean deleteOnePavementTypeById(int id);

    boolean deleteOneDamageCategoryById(int id);

    boolean deleteOneDamageTypeById(int id);

    boolean updateOnePavementType(PavementType obj);

    boolean updateOneDamageCategory(DamageCategory obj);

    boolean updateOneDamageType(DamageType obj);

    PavementType getOnePavementTypeById(int id);

    DamageCategory getOneDamageCategoryById(int id);

    DamageType getOneDamageTypeById(int id);

    List<PavementType> getAllPavementType();

    List<DamageCategory> getAllDamageCategory();

    List<DamageType> getAllDamageTypeByCategoryId(int id);

    List<DamageCategory> getAllDamageCategoryByPavementTypeId(int id);

}
